const path = require('path')
const fs = require('fs')

const pathStr = path.join('/a', '/b/c', '../', './d', 'e')

console.log(pathStr) // \a\b\d\e   ../可以返回上一层，所以跳过了/c

const pathStr2 = path.join(__dirname, './readme.md')

console.log(pathStr2)

const basename1 = path.basename(pathStr2, '.md')

console.log('basename1', basename1)

const extname1 = path.extname(pathStr2)

console.log('extname1', extname1)
